package org.zlb.netty.dbo;

import java.util.Arrays;

public class RpcRequest implements RpcMessage {

    private String requestId;
    private String className;
    private String methodName;
    private Class<?>[] paramTypes;
    private Object[] arguments;
    
    public RpcRequest() {
        
    }
    
    public RpcRequest(String requestId, String className, String methodName, Class<?>[] paramTypes, Object[] arguments) {
        this.requestId = requestId;
        this.className = className;
        this.methodName = methodName;
        this.paramTypes = paramTypes;
        this.arguments = arguments;
    }
    
    public String getRequestId() {
        return requestId;
    }
    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }
    public String getClassName() {
        return className;
    }
    public void setClassName(String className) {
        this.className = className;
    }
    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public Class<?>[] getParamTypes() {
        return paramTypes;
    }
    public void setParamTypes(Class<?>[] paramTypes) {
        this.paramTypes = paramTypes;
    }
    public Object[] getArguments() {
        return arguments;
    }
    public void setArguments(Object[] arguments) {
        this.arguments = arguments;
    }

    @Override
    public String toString() {
        return "RpcRequest [requestId=" + requestId + ", className=" + className + ", methodName=" + methodName
            + ", paramTypes=" + Arrays.toString(paramTypes) + ", arguments=" + Arrays.toString(arguments) + "]";
    }

}
